package com.springsummer.information.green;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Date;

@Controller
@RequestMapping("/hello")
public class HelloController {

    @RequestMapping("/helloInfo")
    @ResponseBody
    public String helloInfo(){
        String str="hello spring summer now "+new Date();
        System.out.println(str);
        return str;
    }


}
